package imu.ming.spring.ioc;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;


public class SpringDirector {
    public static void main(String[] args) {
        AbstractXmlApplicationContext applicationContext = (AbstractXmlApplicationContext)
                new MyClassPathXmlApplicationContext("moAttack.xml");

        MoAttack moAttack = (MoAttack) applicationContext.getBean("moAttack");
        moAttack.cityGateAsk();

    }
}
